<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>24_toString</title>
</head>

<body>
  <script>
    /**
     * toString()
     * 语法: 数组.toString()
     * 作用: 将数组转换为字符串
     * 返回值: 连接好的字符串
     * 注意: 不会改变原始数组, 返回值是一个字符串类型
    */
    var arr = ['a', 'b', 'c', 'd'];
    var result = arr.toString();
    console.log(result);

  </script>
</body>

</html>
